package com.example.demossssssssss.Mapper;

import com.example.demossssssssss.Entity.News;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface NewsMapper {
    @Insert("Insert into news (news_title,news_publisher,news_time,news_text,news_address) Values (#{news_title},#{news_publisher},#{news_time},#{news_text},#{news_address})")
    int addNews(News news);
    //传入

}
